x = [0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
10.5
11
11.5
12
12.5
13
13.5
14
14.5
15
15.5
16
16.5
17
17.5
18
18.5
19
19.5
20
20.5
21
21.5
22
22.5
23
];


y1 = [15
14.60025
14.30025
13.926
13.58325
13.224
12.867
12.5685
12.2625
11.9385
11.634
11.39475
11.14125
10.92675
10.725
10.5525
10.38525
10.296
10.215
10.17
10.1685
10.215
10.296
10.419
10.623
10.8375
11.08575
11.3505
11.6355
12.03
12.297
12.68925
12.9975
13.37715
13.7325
14.0775
14.44875
14.76825
15.07125
15.291
15.4645
15.78425
16.1385
16.3995
16.60125
16.7685
16.953
];

y2 = [8.5
8.641
8.865
9.047
9.278
9.586
9.838
10.027
10.216
10.335
10.461
10.573
10.706
10.762
10.846
10.923
11.014
11.098
11.203
11.308
11.448
11.602
11.77
12.001
12.19
12.484
12.701
12.988
13.275
13.499
13.765
14.045
14.325
14.577
14.857
15.109
15.347
15.564
15.774
15.9645
16.28425
16.5385
16.8995
17.10125
17.2685
17.3435
17.537
];

y3 = [15
14.7075
14.4225
14.25
13.9875
13.7625
13.485
13.275
13.11
12.9525
12.8025
12.6975
12.6
12.54
12.51
12.4875
12.5025
12.5325
12.615
12.6825
12.795
12.9675
13.1475
13.335
13.515
13.6875
13.9725
14.19
14.4675
14.6775
14.925
15.2175
15.465
15.75
16.02
16.2225
16.455
16.65
16.83
17.0025
17.1225
17.2575
17.46
17.5875
17.7525
17.9175
18.1125
];

x11=linspace(min(x),max(x));
y11=interp1(x,y1,x11,'cubic');

x22=linspace(min(x),max(x));
y22=interp1(x,y2,x22,'cubic');

x33=linspace(min(x),max(x));
y33=interp1(x,y3,x33,'cubic');

Line1 = line(x11,y11);
Line2 = line(x22,y22);
Line3 = line(x33,y33);

set(Line1, 'LineStyle', '--','LineWidth', 1,  'Color', [132  94  194]/255)
set(Line2, 'LineStyle', '--','LineWidth', 1,  'Color', [44  115  210]/255)
set(Line3, 'LineStyle', '--','LineWidth', 1,  'Color', [0  143  122]/255)

% 坐标区调整
set(gca, 'Box', 'off', ...                                % 边框
         'TickDir', 'out', 'TickLength', [.01 .01], ...   % 刻度
         'XMinorTick', 'off', 'YMinorTick', 'off', ...    % 小刻度
         'XColor', [.1 .1 .1],  'YColor', [.1 .1 .1],...  % 坐标轴颜色
         'XTick', 0:5:30,  'YTick', 5:5:20,...     % 刻度位置、间隔
         'Xlim' ,[0 30],'Ylim' ,[5 20], ...          % 坐标轴范围
         'Xticklabel',{[0:5:30]},...                   % X坐标轴刻度标签
         'Yticklabel',{[5:5:20]})                     % Y坐标轴刻度标签
% X、Y轴标签及Legend
hXLabel = xlabel('Time (s)');
hYLabel = ylabel('speed (m/s)');
hLegend = legend([Line1,Line2,Line3], ...
                 'FV', 'SV','LV', ...
                 'Location', 'northeast');
% 刻度标签字体和字号
set(gca, 'FontName', 'Times', 'FontSize', 9)
% X、Y轴标签及Legend的字体字号 
set([hXLabel, hYLabel,hLegend], 'FontName',  'Helvetica')
set([hXLabel, hYLabel,hLegend], 'FontSize', 10)
% 背景颜色
set(gca,'Color',[1 1 1])













